package com.xyht.sca_s.student_manage_system.modules.employmentApplication.controller;


import com.xyht.sca_s.student_manage_system.common.commonReturn.ResponseResult;
import com.xyht.sca_s.student_manage_system.common.desEncodeAndDecode.annotation.SecretBody;
import com.xyht.sca_s.student_manage_system.modules.employmentApplication.entity.vo.SmsEmploymentApplicationProcessVO;
import com.xyht.sca_s.student_manage_system.modules.employmentApplication.service.SmsEmploymentApplicationProcessService;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author XYHT
 * @since 2023-05-23
 */
@RestController
@RequestMapping("/employmentApplication/smsEmploymentApplicationProcess")
@SecretBody
public class SmsEmploymentApplicationProcessController {
    @Autowired
    SmsEmploymentApplicationProcessService smsEmploymentApplicationProcessService;
    @ApiModelProperty(value = "流程列表")
    @GetMapping("/list")
    public ResponseResult getSmsEmploymentProcessList(){
        return smsEmploymentApplicationProcessService.getSmsEmploymentProcessList();
    }

    @ApiModelProperty(value = "修改流程")
    @PostMapping("/update")
    public ResponseResult updateSmsEmploymentProcess(@RequestBody SmsEmploymentApplicationProcessVO processVO){
        return smsEmploymentApplicationProcessService.updateSmsEmploymentProcess(processVO);
    }
}

